package edu.uic.cs.i422.s2011.team4;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

/*Displays entry screen for users to enter
 * squirrel activity
 * 
 * Requires: squirrel designation, counter, buttons for changing data
 * Done button will be at bottom of page, and returns user to main screen
 * 
 * 
 */
public class SquirrelActivity extends Activity implements OnClickListener{
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        View inflatedView = View.inflate(this, R.layout.squirrel_activity, null);
        SquirrelUIGenerator squirrel = new SquirrelUIGenerator(this);
        squirrel.setTitle(R.string.squirrelTitle);
        squirrel.setHelp(R.string.squirrelHelp);
        squirrel.setBreadCrumb(R.string.squirrelBreadCrumb);
        LinearLayout layout = new LinearLayout(this);
        layout.setOrientation(LinearLayout.VERTICAL); //Set Oritentation
        layout.addView(squirrel.getHeader());
        layout.addView(inflatedView);
        setContentView(layout);
        
        
        final  Button doneButton = (Button) findViewById(R.id.squirrel_done);        
        doneButton.setOnClickListener(this);
        
        final EditText foxNumber = (EditText)findViewById(R.id.fox_entry);
        final EditText grayNumber = (EditText)findViewById(R.id.gray_entry);

}

        
    
	public void onClick(View v) {
		SquirrelData.setSquirrelsCheckMark(true);
		finish();
	}
}
